package com.liezh.server;

import com.liezh.service.User;

/**
 * @author liezh
 * @date 2022-3-7
 */
public class UserSession {

    private static ThreadLocal<User> session = new ThreadLocal<>();

    public static User getSession() {
        return session.get();
    }

    public static void setSession(User session) {
        UserSession.session.set(session);
    }
}
